﻿<UserControl x:Class="Fluffy.Library.Views.WaitView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:documentContainer="clr-namespace:Fluffy.Library.DocumentContainer"
             mc:Ignorable="d" d:DataContext="{d:DesignInstance documentContainer:DocumentViewModelBase}"
             d:DesignHeight="300" d:DesignWidth="300">
    <Border Opacity="0.7" Background="White">
        <Border.Style>
            <Style TargetType="Border">
                <Style.Triggers>
                    <DataTrigger Binding="{Binding ProgressState}" Value="{x:Static TaskbarItemProgressState.None}">
                        <Setter Property="Visibility" Value="Collapsed"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </Border.Style>
        <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding ProgressMessage}"/>
            <ProgressBar Minimum="0" Maximum="1" Value="{Binding ProgressValue, Mode=OneWay}" MinWidth="300"/>
        </StackPanel>
    </Border>
</UserControl>
